import request from '@/service/index'


export function getPageList(pageUrl: string, queryInfo: any) {
  console.log(pageUrl);

  return request.post({
    url: pageUrl,
    data: queryInfo
  })
}

export function deletePageData(pageUrl: string) {
  return request.delete({
    url: pageUrl
  })
}

export function newPageData(pageUrl: string, newData: any) {
  return request.post({
    url: pageUrl,
    data: newData
  })
}

export function editPageData(pageUrl: string, editData: any) {
  return request.patch({
    url: pageUrl,
    data: editData
  })
}
